<?php


namespace App\Repository;


use App\Http\Requests\Request;
use App\Models\Banner;
use Illuminate\Support\Arr;

class BannerRepository
{
    //获取banner图列表
    public function getList($request)
    {
        $list = Banner::query()->orderBy('id','desc')->paginate(Arr::get($request, 'limit', 10));
        return $list;
    }
    
}
